import React from 'react';
import { useRoutes } from 'react-router';
import ALLRoutes from './routers/index'
import { Provider } from "react-redux"
import store from './store';
import { GlobalStyle } from './style';
// import { Routes, Route, Navigate } from "react-router-dom"
// import HomeLayout from './layouts/HomeLayout';
// import NotFound from './layouts/NotFound';
// import ShopCar from "./pages/shopcar"
// import Test from "./pages/shopcar/test"
function App() {
  let routes = useRoutes(ALLRoutes)
  return (
    <Provider store={store}>
      <GlobalStyle ></GlobalStyle>
      <div>
        {
          routes
        }
      </div>
    </Provider>
  )
}


export default App
